<HTML>
<HEAD>
<TITLE>
IndexException.h
</TITLE>
</HEAD>
<BODY>
<PRE>
<font color="green">/*
 * IndexException.h
 *
 *  Created on: 14/10/2009
 *      Author: andres
 */</font>

<font color="blue">#ifndef</font> INDEXEXCEPTION_H_
<font color="blue">#define</font> INDEXEXCEPTION_H_

<font color="blue">#include</font> <font color="maroon">&#60;exception&#62;</font>

<font color="blue">class</font> IndexException<font color="black">:</font> <font color="blue">public</font> exception
<font color="black">{</font>
<font color="blue">public</font><font color="black">:</font>
    <font color="blue">const</font> <font color="blue">char</font><font color="black">*</font> what<font color="black">(</font><font color="black">)</font> <font color="blue">const</font> <font color="blue">throw</font><font color="black">(</font><font color="black">)</font><font color="black">{</font>
                <font color="blue">return</font> <font color="maroon">"Error en el Indice"</font>;
            <font color="black">}</font>
<font color="black">}</font>;

<font color="blue">#endif</font> <font color="green">/* INDEXEXCEPTION_H_ */</font>

</PRE>
</BODY>
</HTML>
